﻿using Newtonsoft.Json.Serialization;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace FieldTools.Client.Model
{
    public class GameDatabase
    {

    }

    /// <summary>
    /// 游戏地图点
    /// </summary>
    public class GameMapPoint
    {
        public string  Id { get; set; }
        public string Name { get; set; }
        public MapType Type { get; set; }
        /// <summary>
        /// 坐标
        /// </summary>
        public Point Coord { get; set; } = new Point(0, 0);
        public List<MapPointLink> PointLinks { get; set; }
        public string Description { get; set; }
        public string Remark { get; set; }
    }

    /// <summary>
    /// 地图点链接
    /// </summary>
    public class MapPointLink
    {
        public string Id { get; set; }
        /// <summary>
        /// 方向
        /// </summary>
        public string Direction { get; set; } = "";
    }

    /// <summary>
    /// 可交互对象
    /// </summary>
    public class GameInteraction
    {
        public string Id { get; set; }
        public string Name { get; set; }
        public InterractionType Type { get; set; }
        public int Level { get; set; }
        public int HP { get; set; }
        public string MarkImg { get; set; }
        public GameMapPoint Map { get; set; }
        public string Description { get; set; }
        public string Remark { get; set; }
    }

    #region 枚举内容
    /// <summary>
    /// 交互类型
    /// </summary>
    public enum InterractionType
    {
        其他=0,  
        敌人 = 1,
        任务对象 = 2,
        设施 = 3
    }
    
    /// <summary>
    /// 地图类型
    /// </summary>
    public enum MapType
    {
        其他 = 0,
        中心城市 = 1,
        普通城市 = 2,
        普通地点 = 3,
        副本 = 4,
        特殊地点 = 5
    }

    #endregion
}
